


<fieldset class="layui-elem-field layui-field-title" >
    <legend>联系跟踪</legend>
</fieldset>
<!-- TODO 备注一下
//这里显示的是近7天订单的完成状况。目前是最后处理完所有订单的话，都会是中间的待完成待发货，都是0-->
<!--//是否应该显示当天订单的固定值。例如有多少张单是当天完成的。-->


<div class="layui-form">
    <table class="layui-table">
        <colgroup>
            <col width="150">
            <col>
            <col>
            <col>
            <col>
        </colgroup>
        <thead>
        <tr>
            <th>姓名</th>
            <th>职位</th>
            <th>企业</th>
            <th>电话</th>
            <th>邮箱</th>
            <th>标签</th>
            <th>评级</th>
            <th>下次联系</th>
            <th>来源</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>



        <? foreach($member_contact as $k=>$v){?>
            <tr>
                <td style="color:<?if($v['gender']=="男"){echo "#1e9fff";}else{echo "#ff1e7b";}?>">
                    <?echo $v['name']?>
                    <span >
        <?if($v['gender']=="男"){?>
            <i class="fa fa-male" aria-hidden="true">  </i>
        <?}else{?>
            <i class="fa fa-female" aria-hidden="true"></i>
        <?}?>
    </span>
                </td>

                <td><?echo $v['position']?></td>
                <td><?echo $unit_name_list[$v['unitnid']]?></td>


                <td><?echo $v['phone']?></td>
                <td><?echo $v['email']?></td>
                <td><?echo $v['tag']?></td>
                <td><?echo $v['rank']?></td>
                <td><?echo substr($v['checkpoint'],0,10)?>  /
                    <span style="background-color: <? if(count_days(date("Y-m-d"),$v['checkpoint']) < 15 ) { echo "red";}?>">
        <?echo count_days(date("Y-m-d"),$v['checkpoint'])?> 日
    </span>
                </td>

                <td><?echo $v['source']?></td>
                <td> <a href="../../member/view/detail-edit.php?nid=<? echo $v['nid']?>"
                        class="layui-btn   layui-btn-sm" >
                        <i class="fa fa-file-text-o" aria-hidden="true"></i>
                        信息
                    </a></td>

            </tr>
        <?}?>




        </tbody>
    </table>
</div>